﻿using LPLS.Commons.DBModule;
using LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionType.PLC;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionRuleEdgeModule
{

    [DatabaseKey(DatabaseEnum.CollectionConfigDB)]
    [SugarTable(nameof(DataCollectionWorkFlowConfig))]
    public  class DataCollectionWorkFlowConfig
    {

        [SugarColumn(IsPrimaryKey = true)]
        public Guid ID { get; set; }

        public Guid  DeviceID { get; set; }

        public Guid CompentID { get; set; }
        /// <summary>
        /// 工作流名称
        /// </summary>
        public string WorkFlowName { get; set; }


        /// <summary>
        /// 关联规则数据
        /// </summary>
        /// 
        [Navigate(NavigateType.OneToMany, nameof(DataCollectionRuleConfig.WorkFlowID))]
        public List<DataCollectionRuleConfig> Rules { get; set; }







    }
}
